﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace kim.Web
{
    public partial class professional : kim.UI.BasePage
    {
        protected string[] htmltext = new string[10];
        public int nid;
        protected void Page_Load(object sender, EventArgs e)
        {
            GetInfo();
        }
        private void GetInfo()
        {
            nid = kim.Common.KIMRequest.GetInt("nid", 0);
            rptSpecialty.DataSource = base.GetNewsList(0, nid, base.fid);
            rptSpecialty.DataBind();


            if (nid == 0)
            {
                Response.Redirect("index.aspx");
            }
            Model.eg_news nmo = new BLL.eg_news().UpdateRead(nid);
            if (nmo != null)
            {
                htmltext[0] = nmo.Name;
                htmltext[1] = nmo.InTime.ToString();
                htmltext[2] = nmo.Content;
                htmltext[3] = kim.Common.Utils.DropHTML(nmo.jj, 280);
                htmltext[4] = nmo.zjj;

            }
            else
                Response.Redirect(base.webPath + "kim/eroor.aspx?msg=" + Server.UrlEncode("访问数据不存在"));
        }
    }
}